package com.yc.happ.entity;

import java.io.Serializable;

public class Volunteer implements Serializable{
	
	private static final long serialVersionUID = -3283443443068249500L;
	
	private Integer vid;
	private String vname;
	private String vuname;
	private String vpassword;
	private String vsex;
	private String vtype;
	private String vaddress;
	private String vphone;
	private String vspecial;
	private String vdate;
	private String vtimeStart;
	private String vtimeEnd;
	private Integer vscore;
	private Integer isChoose;
	
	public Volunteer() {
		
	}
	public Volunteer(Integer vid,String vname, String vuname, String vpassword, String vsex, String vtype, String vaddress,
			String vphone, String vspecial, String vdate, String vtimeStart, String vtimeEnd, Integer vscore,
			Integer isChoose) {
		super();
		this.vid=vid;
		this.vname = vname;
		this.vuname = vuname;
		this.vpassword = vpassword;
		this.vsex = vsex;
		this.vtype = vtype;
		this.vaddress = vaddress;
		this.vphone = vphone;
		this.vspecial = vspecial;
		this.vdate = vdate;
		this.vtimeStart = vtimeStart;
		this.vtimeEnd = vtimeEnd;
		this.vscore = vscore;
		this.isChoose = isChoose;
	}
	public String getVname() {
		return vname;
	}
	public void setVname(String vname) {
		this.vname = vname;
	}
	public String getVuname() {
		return vuname;
	}
	public void setVuname(String vuname) {
		this.vuname = vuname;
	}
	public String getVpassword() {
		return vpassword;
	}
	public void setVpassword(String vpassword) {
		this.vpassword = vpassword;
	}
	public String getVsex() {
		return vsex;
	}
	public void setVsex(String vsex) {
		this.vsex = vsex;
	}
	public String getVtype() {
		return vtype;
	}
	public void setVtype(String vtype) {
		this.vtype = vtype;
	}
	public String getVaddress() {
		return vaddress;
	}
	public void setVaddress(String vaddress) {
		this.vaddress = vaddress;
	}
	public String getVphone() {
		return vphone;
	}
	public void setVphone(String vphone) {
		this.vphone = vphone;
	}
	public String getVspecial() {
		return vspecial;
	}
	public void setVspecial(String vspecial) {
		this.vspecial = vspecial;
	}
	public String getVdate() {
		return vdate;
	}
	public void setVdate(String vdate) {
		this.vdate = vdate;
	}
	public String getVtimeStart() {
		return vtimeStart;
	}
	public void setVtimeStart(String vtimeStart) {
		this.vtimeStart = vtimeStart;
	}
	public String getVtimeEnd() {
		return vtimeEnd;
	}
	public void setVtimeEnd(String vtimeEnd) {
		this.vtimeEnd = vtimeEnd;
	}
	public Integer getVscore() {
		return vscore;
	}
	public void setVscore(Integer vscore) {
		this.vscore = vscore;
	}
	public Integer getIsChoose() {
		return isChoose;
	}
	public void setIsChoose(Integer isChoose) {
		this.isChoose = isChoose;
	}
	
	public Integer getVid() {
		return vid;
	}
	public void setVid(Integer vid) {
		this.vid = vid;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((isChoose == null) ? 0 : isChoose.hashCode());
		result = prime * result + ((vaddress == null) ? 0 : vaddress.hashCode());
		result = prime * result + ((vdate == null) ? 0 : vdate.hashCode());
		result = prime * result + ((vid == null) ? 0 : vid.hashCode());
		result = prime * result + ((vname == null) ? 0 : vname.hashCode());
		result = prime * result + ((vpassword == null) ? 0 : vpassword.hashCode());
		result = prime * result + ((vphone == null) ? 0 : vphone.hashCode());
		result = prime * result + ((vscore == null) ? 0 : vscore.hashCode());
		result = prime * result + ((vsex == null) ? 0 : vsex.hashCode());
		result = prime * result + ((vspecial == null) ? 0 : vspecial.hashCode());
		result = prime * result + ((vtimeEnd == null) ? 0 : vtimeEnd.hashCode());
		result = prime * result + ((vtimeStart == null) ? 0 : vtimeStart.hashCode());
		result = prime * result + ((vtype == null) ? 0 : vtype.hashCode());
		result = prime * result + ((vuname == null) ? 0 : vuname.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Volunteer other = (Volunteer) obj;
		if (isChoose == null) {
			if (other.isChoose != null)
				return false;
		} else if (!isChoose.equals(other.isChoose))
			return false;
		if (vaddress == null) {
			if (other.vaddress != null)
				return false;
		} else if (!vaddress.equals(other.vaddress))
			return false;
		if (vdate == null) {
			if (other.vdate != null)
				return false;
		} else if (!vdate.equals(other.vdate))
			return false;
		if (vid == null) {
			if (other.vid != null)
				return false;
		} else if (!vid.equals(other.vid))
			return false;
		if (vname == null) {
			if (other.vname != null)
				return false;
		} else if (!vname.equals(other.vname))
			return false;
		if (vpassword == null) {
			if (other.vpassword != null)
				return false;
		} else if (!vpassword.equals(other.vpassword))
			return false;
		if (vphone == null) {
			if (other.vphone != null)
				return false;
		} else if (!vphone.equals(other.vphone))
			return false;
		if (vscore == null) {
			if (other.vscore != null)
				return false;
		} else if (!vscore.equals(other.vscore))
			return false;
		if (vsex == null) {
			if (other.vsex != null)
				return false;
		} else if (!vsex.equals(other.vsex))
			return false;
		if (vspecial == null) {
			if (other.vspecial != null)
				return false;
		} else if (!vspecial.equals(other.vspecial))
			return false;
		if (vtimeEnd == null) {
			if (other.vtimeEnd != null)
				return false;
		} else if (!vtimeEnd.equals(other.vtimeEnd))
			return false;
		if (vtimeStart == null) {
			if (other.vtimeStart != null)
				return false;
		} else if (!vtimeStart.equals(other.vtimeStart))
			return false;
		if (vtype == null) {
			if (other.vtype != null)
				return false;
		} else if (!vtype.equals(other.vtype))
			return false;
		if (vuname == null) {
			if (other.vuname != null)
				return false;
		} else if (!vuname.equals(other.vuname))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Volunteer [vid=" + vid + ", vname=" + vname + ", vuname=" + vuname + ", vpassword=" + vpassword
				+ ", vsex=" + vsex + ", vtype=" + vtype + ", vaddress=" + vaddress + ", vphone=" + vphone
				+ ", vspecial=" + vspecial + ", vdate=" + vdate + ", vtimeStart=" + vtimeStart + ", vtimeEnd="
				+ vtimeEnd + ", vscore=" + vscore + ", isChoose=" + isChoose + "]";
	}
	
}
